package com.tm.service.impl;

import com.tm.mapper.MemberMapper;
import com.tm.pojo.MemberPojo;
import com.tm.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Rocky
 * @create 2022-09-14 13:41
 */
@Service
public class MemberServiceImpl implements MemberService {
    @Autowired
    private MemberMapper memberMapper;

    public MemberPojo queryBypassword(String memberaccount, String memberpwd) {
        MemberPojo memberPojo= memberMapper.queryBypassword(memberaccount);
        if (memberPojo!=null){
            String memberpwd1 = memberPojo.getMemberpwd();
            if (memberpwd1.equals(memberpwd)){
                return memberPojo;
            }else {
                return null;
            }
        }else {
            return null;
        }
    }
}
